package com.example.rabbitmqemal;

import com.alex.server.pojo.MailConstants;
import org.springframework.amqp.core.Queue;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Bean;


//去掉数据库的配置
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class RabbitmqEmalApplication {

    public static void main(String[] args) {
        SpringApplication.run(RabbitmqEmalApplication.class, args);
    }
    @Bean
    public Queue queue(){
        return new Queue(MailConstants.Queue_name);
    }
}
